<?php
/*\
 *	
 *	
 *	
 *	
\*/

function oh_model_new_class($query,$data) {
	oh_dump($query);
	oh_dump($data);
	
	global $oh_object_model;
	if (!$this->test()) return oh("model");

	$args = $this->get_args($query,"name","define:form");			
	$args->form = $this->sanitize_model_form($args->form);			

	$prefix = $this->get_prefix();
	$i 		= $this->get_class_insert($args);
	$fields = $i["fields"];
	$values = $i["values"];
	if (!$this->hit_class($args)) {
		$q = "INSERT INTO {$prefix}class($fields) VALUES ($values)";
	oh($this->datasource)->query($q);					
	}		
	return $oh_object_model;
}





	
